<template>
  <div class="box">
    <div class="header">
      <div class="hearder_p">
        <div class="inp">
          <img
            src="	https://p0.meituan.net/travelcube/99c29829cf1b85d5cdbc76a1bd0b7329814.png"
            alt=""
          />
          <input type="search" placeholder="盒马电子卡" />
        </div>
      </div>
    </div>
    <Xuan />
  </div>
</template>

<script>
import Xuan from '../components/Xuan.vue'
export default {
  name: "Home",
  components: {
    Xuan
  },
};
</script>
<style scoped>
.box {
  height: 400px;
}
.header {
  width: 100%;
  height: 400px;
  background-color: yellow;
}
i {
  width: 40px;
  height: 40px;
  color: white;
}
.hearder_p {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
}
.inp {
  width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}
img {
  width: 100%;
  height: 100%;
}
input {
  padding-left: 60px;
  width: 700px;
  height: 60px;
  position: absolute;
  z-index: 1;
  font-size: 20px;
  border-radius: 10px;
  border: 0;
}
.inp > img {
  padding: 20px;
  width: 30px;
  height: 30px;
  z-index: 2;
  margin-left: -620px;
}
.search {
  width: 300px;
  height: 30px;
  border-radius: 10px;
  background-color: #f5f7f8;
}
button {
  background-color: red;
  border: 0;
}
</style>
